package com.etlmaster.executor.scheduler;

import java.util.HashMap;
import java.util.Map;


/**
 * @author Larry
 * @copyright Larry@etlMaster
 * @since 2017-09-10
 */
public class ScheduleStatus {

	public static final int publish=0;//已发布
	
	public static final int invalid=-1;//已失效
	
	public static final int updated=1;//更新待发布
	
	public static final int sameProc = 5;
	public static final int sameNameProc = 4;
	public static final int noProc = 3;
	
	public static final int conditionMeet = 6;// 满足条件
	public static final int conditionNotMeet = -13;// 不满足条件

	public static final int fullAgent = 7;// agent 已满

	public static final int success = 8;// 提交
	public static final int preCycleRunning = 9;// 不同批次的任务正在运行

	public static final int alreadyRunning = 10;// 任务正在运行

	public static final int exesuccess=11;//执行成功
	public static final int exefailed=12;//执行失败

	public static final int agentInvalid=13;// agent 失效
	
	public static final int nosuchAgent=-14;
	public static final Map<Integer,String> statusMap=new HashMap<Integer,String>();
	static{
		statusMap.put(0, "已发布");
		statusMap.put(-1, "已失效");
		statusMap.put(1, "已更新待发布");
		statusMap.put(3, "已有相同任务在运行");
		statusMap.put(4, "已有相同任务在运行");
		statusMap.put(5, "没有该任务");
		statusMap.put(6, "满足运行条件");
		statusMap.put(7, "agent 已满");
		statusMap.put(8, "提交");
		statusMap.put(9, "不同批次的任务正在运行");
		statusMap.put(10, "任务正在运行");
		statusMap.put(13, "agent 失效");
		statusMap.put(14, "nosuchAgent");


	}

}
